<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 商家解绑申请
 */
class Unbind extends Model
{
    protected $table = 'unbinds';

    protected $fillable = [
        'id',
        'uid',
        'status',
    ];

    const S_ONE = 1;
    const S_TWO = 2;
    const S_THREE = 3;
    public static $STATUS = [
    	self::S_ONE => '审核中',
    	self::S_TWO => '解绑成功',
    	self::S_THREE => '解绑失败',
    ];

    public function user()
    {
        return $this->hasOne('App\\Models\\User', 'id', 'uid');
    }
}
